# Docker 镜像构建
FROM openjdk:20-jdk-slim

# 设置工作目录
WORKDIR /workdir

# 复制 Maven 构建的 JAR 文件到容器中
COPY target/ikunoj-backend-0.0.1-SNAPSHOT.jar /workdir/app.jar

# Run the web service on container startup.
CMD ["java","-jar","/workdir/app.jar","--spring.profiles.active=prod"]